﻿using System;
using System.Configuration;

namespace OdsServer.Common
{
    public class OdsServerSocketConfiguration : ConfigurationElementCollection
    {
        [ConfigurationProperty("active",
            DefaultValue = false,
            IsRequired = true,
            IsKey = false)]
        public bool Active
        {
            get { return (bool)this["active"]; }
            set { this["active"] = value; }
        }

        [ConfigurationProperty("port",
            DefaultValue = 10001,
            IsRequired = true,
            IsKey = false)]
        public int Port
        {
            get { return (int)this["port"]; }
            set { this["port"] = value; }
        }

        protected override ConfigurationElement CreateNewElement()
        {
            throw new NotImplementedException();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            throw new NotImplementedException();
        }
    }
}
